package model.map;

import model.Model;
import utilities.*;

/**
 * A class to hold the name of the Terrain and what type of terrain it is so Models know if they can walk over it.
 */
public class Terrain extends Model implements Archiveable {
	private MovementType movementType;

	public Terrain(String name, MovementType movementType)
	{
		super(name);
		this.movementType = movementType;
	}
	
	/* --------------------------------------------------------------------------------
	 * Getters and Setters
	   -------------------------------------------------------------------------------- */
	
	public Terrain() {
		// TODO Auto-generated constructor stub
	}

	public MovementType getMovementType() {
		return movementType;
	}

	@Override
	public String toString()
	{
		return super.toString() + "Terrain [movementType=" + movementType + "]";
	}
	
	public Archive save() {
		Archive archive = super.save();
		
		return archive;
	}
	
	public void load(Archive archive) {
		super.load(archive);
	}
	
}